﻿@model Systematize.Models.Library.EditModel
@{
    var ratingDropdownValues = new List<SelectListItem>
    {
        new SelectListItem {Text = "1"},
        new SelectListItem {Text = "2"},
        new SelectListItem {Text = "3"},
        new SelectListItem {Text = "4"},
        new SelectListItem {Text = "5"}
    };
}

<div class="form-group">
    @Html.LabelFor(i => i.Name, "Name", new { @class = "col-sm-2 control-label" })
    <div class="col-sm-10">
        @Html.TextBoxFor(i => i.Name, new { @class = "form-control" })
    </div>
</div>

<div class="form-group">
    @Html.LabelFor(i => i.Description, "Description", new { @class = "col-sm-2 control-label" })
    <div class="col-sm-10">
        @Html.TextAreaFor(i => i.Description, new { @class = "form-control", rows = "3" })
    </div>
</div>

<div class="form-group">
    @Html.LabelFor(i => i.Price, "Price", new { @class = "col-sm-2 control-label" })
    <div class="col-sm-10">
        <div class="input-group">
            <span class="input-group-addon">&pound;</span>
            @Html.TextBoxFor(i => i.Price, new { @class = "form-control" })
        </div>
    </div>
</div>

<div class="form-group">
    @Html.LabelFor(i => i.Rating, "Rating", new { @class = "col-sm-2 control-label" })
    <div class="col-sm-10">
        @Html.DropDownListFor(i => i.Rating, ratingDropdownValues, new { @class = "form-control" })
    </div>
</div>
